<template>
  <el-footer class="footer">
    <div class="footer-container">
      <div class="footer-content">
        <div class="footer-section">
          <h3>关于我们</h3>
          <p>我们致力于为用户提供高质量的分型生成服务，让创作更加简单有趣。</p>
        </div>

        <div class="footer-section">
          <h3>联系方式</h3>
          <p><el-icon><Phone /></el-icon> 423-888-8888</p>
          <p><el-icon><Message /></el-icon> 2025fenxing.com</p>
          <p><el-icon><Location /></el-icon> 云南省昆明市呈贡区YNU</p>
        </div>

        <div class="footer-section">
          <h3>关注我们</h3>
          <div class="social-links">
            <el-button circle>
              <el-icon><ChatDotRound /></el-icon>
            </el-button>
            <el-button circle>
              <el-icon><Share /></el-icon>
            </el-button>
            <el-button circle>
              <el-icon><Star /></el-icon>
            </el-button>
          </div>
        </div>
      </div>

      <div class="footer-bottom">
        <p>Copyright © 2025 分型生成. All rights reserved.</p>
        <p>
          <el-link type="info" href="#">隐私政策</el-link> |
          <el-link type="info" href="#">使用条款</el-link> |
          <el-link type="info" href="#">帮助中心</el-link>
        </p>
      </div>
    </div>
  </el-footer>
</template>

<script setup lang="ts">
import { Phone, Message, Location, ChatDotRound, Share, Star } from '@element-plus/icons-vue'
</script>

<style scoped>
.footer {
  background-color: transparent;
  color: #303133;
  padding: 20px 0;
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: #000000;
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 30px;
  height: 2px;
  background-color: #409EFF;
}

.footer-section p {
  color: #151414;
  line-height: 1.8;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links .el-button {
  background: transparent;
  border: 1px solid #409EFF;
  color: #409EFF;
}

.social-links .el-button:hover {
  background: #409EFF;
  color: #fff;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
}

.footer-bottom p {
  color: #000000;
  margin: 10px 0;
}

.footer-bottom .el-link {
  margin: 0 10px;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }
}
</style>